package com.example.kt_fast.api

import com.example.kt_common.network.BaseResp
import com.example.kt_fast.bean.req.AddDriverInfoReq
import com.example.kt_fast.bean.resp.CarTreeBean
import com.example.kt_fast.bean.resp.UploadImgBean
import okhttp3.MultipartBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

/**
 * Created by 小陈 on 2025/3/25.
 * Time: 18:39.
 */
interface FastApi {
    @Multipart
    @POST("/patent/common/uploadImg") //上传图片 （司机图片...
    suspend fun uploadImg(
        @Part part: MultipartBody.Part
    ): BaseResp<UploadImgBean>


    @POST("/patent/operation/addDriverInfo") ////新增司机信息
    suspend fun addDriverInfo(
        @Body addDriverInfoReq: AddDriverInfoReq
    ): BaseResp<String>

    @GET("/patent/manager/getTreeAside") //左侧树11.14最终接口
    suspend fun getTreeAside(): BaseResp<CarTreeBean>


}